package io.renren.common.test;

import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;

/**
 * @Description
 * @Author haijun.zhang@luckincoffee.com
 * @Date 2018-08-07 14:11
 **/
@RunWith(SpringRunner.class)
@SpringBootTest
@WebAppConfiguration
public class AbstractJunit {
    
    /**
     * 日志
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(AbstractJunit.class);
    
    @Before
    public void init() {
        LOGGER.debug("开始测试-----------------");
    }

    @After
    public void after() {
        LOGGER.debug("测试结束-----------------");
    }

}
